package com.yuwei.database.db

import androidx.room.DeleteColumn
import androidx.room.RenameColumn
import androidx.room.RenameTable
import androidx.room.migration.AutoMigrationSpec

/**
 * 用户信息升级
 * 修改表名
 */
@RenameTable(fromTableName = "user_info_table", toTableName = "user_table")
class UserInfoAutoMigration : AutoMigrationSpec
/**
 * 用户信息升级
 * 修改字段名
 */
@RenameColumn(tableName = "user_info_table", fromColumnName = "user_name", toColumnName = "user_name_new")
class UserInfoAutoMigration2 : AutoMigrationSpec
@DeleteColumn(tableName = "user_info_table", columnName = "ctime")
class UserInfoAutoMigration3 : AutoMigrationSpec